package pl.mchaniewski.ryneczek.dao;

import java.util.Date;
import java.util.List;

import pl.mchaniewski.ryneczek.pojo.Order;

public interface OrderDao extends GenericDao<Order, Integer> {

    public List<Order> findByPortfolioIdStatusAndTransactionType(
            Integer portfolioId, String status, String transactionType);

    public List<Order> findByPortfolioIdAndStatus(Integer portfolioId,
            String status);

    public List<Order> findByStatusPortfolioIdAndCompanyId(Integer portfolioId,
            Integer companyId, String status);

    public List<Order> findAllWithStatusBeforeDate(String status, Date date,
            boolean companyWasInLastUpdate);

    public List<Order> findAllButAcceptedByPortfolioId(Integer portfolioId);

    public List<Order> findAllButAcceptedByPortfolioIdAndCompanyId(
            Integer portfolioId, Integer companyId);

}
